<template>
  <div class="login-phone">
    <el-form :model="form" :rules="rules" label-width="60px">
      <el-form-item label="手机号" prop="phone">
        <el-input v-model="form.phone" clearable></el-input>
      </el-form-item>
      <el-form-item label="验证码" prop="code">
        <div class="f">
          <el-input v-model="form.code" autocomplete="off" clearable></el-input>
          <el-button type="primary" style="margin-left: 10px">验证码</el-button>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import rules from './config/account-config';
export default defineComponent({
  name: 'LoginPhone',
  setup() {
    const form = reactive({
      phone: '',
      code: ''
    });

    return {
      form,
      rules
    };
  }
});
</script>
<style scoped lang="scss"></style>
